backup_tool:mkdir main.o backup.o restore.o
	aarch64-linux-gnu-g++ -o ../build/backup_tool ../build/main.o ../build/backup.o ../build/restore.o -lssl -lcrypto -static -std=c++17
main.o:main.cpp
	aarch64-linux-gnu-g++ -o ../build/main.o -c main.cpp -static -std=c++17
backup.o:backup.cpp
	aarch64-linux-gnu-g++ -o ../build/backup.o -c backup.cpp -static -std=c++17
restore.o:restore.cpp
	aarch64-linux-gnu-g++ -o ../build/restore.o -c restore.cpp -static -std=c++17
mkdir:
	mkdir ../build
clean:
	rm -rf ../build